from django.conf.urls import url
from apps.users import views

urlpatterns = [
    url(r'^register/$', views.Register.as_view(), name='register'),
    url(r'^username/(?P<username>[a-zA-Z0-9_-]{5,20})/$', views.Username.as_view(), name='username'),
    url(r'^login/$', views.Login.as_view(), name='login'),
    url(r'^logout/$', views.Logout.as_view(), name='logout'),
    url(r'^info/$', views.Info.as_view(), name='info'),
    url(r'^emails/$', views.Emails.as_view(), name='emails'),
    url(r'^checkemail/$', views.CheckEmail.as_view(), name='checkEmail'),
    url(r'^address/$', views.Address.as_view(), name='address'),
    url(r'^address/create/$', views.AddressCreate.as_view(), name='addressCreate'),
]